Mark

Mark object for [class@Buffer].

A GtkSourceMark marks a position in the text where you want to display additional info. It is based on [class@Gtk.TextMark] and thus is still valid after the text has changed though its position may change.

GtkSourceMarks are organized in categories which you have to set when you create the mark. Each category can have a priority, a pixbuf and other associated attributes. See [method@View.set_mark_attributes]. The pixbuf will be displayed in the margin at the line where the mark residents if the [property@View:show-line-marks] property is set to %TRUE. If there are multiple marks in the same line, the pixbufs will be drawn on top of each other. The mark with the highest priority will be drawn on top.

Constructors

this
this(GtkSourceMark* gtkSourceMark, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(string name, string category)

Creates a text mark.

Members

Functions

getCategory
string getCategory()

Returns the mark category.

getMarkStruct
GtkSourceMark* getMarkStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

next
Mark next(string category)

Returns the next GtkSourceMark in the buffer or %NULL if the mark was not added to a buffer.

prev
Mark prev(string category)

Returns the previous GtkSourceMark in the buffer or %NULL if the mark was not added to a buffer.

Static functions

getType
GType getType()

Variables

gtkSourceMark
GtkSourceMark* gtkSourceMark;

the main Gtk struct

Inherited Members

From TextMark

gtkTextMark
GtkTextMark* gtkTextMark;

the main Gtk struct

getTextMarkStruct
GtkTextMark* getTextMarkStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getBuffer
TextBuffer getBuffer()

Gets the buffer this mark is located inside.

getDeleted
bool getDeleted()

Returns %TRUE if the mark has been removed from its buffer.

getLeftGravity
bool getLeftGravity()

Determines whether the mark has left gravity.

getName
string getName()

Returns the mark name.

getVisible
bool getVisible()

Returns %TRUE if the mark is visible.

setVisible
void setVisible(bool setting)

Meta